/** 订单模块路由 */
export default [
  {
    path: '/orders',
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '',              // 列表页已有
        name: 'OrderList',
        component: () => import('@/views/order/list.vue'),
        meta: { title: '订单列表', icon: 'list' }
      },
      {
        path: ':id(\\d+)',     // 新增详情页
        name: 'OrderDetail',
        component: () => import('@/views/order/detail.vue'),
        meta: { title: '订单详情', activeMenu: '/orders', noCache: true },
        hidden: true           // 不在侧边栏显示
      }
    ]
  }
]
